from nltk.corpus import stopwords

# 停用词表示在文本中频率很高，但是没有实际意义的词，比如is, the, a, 等等

tokens=[ 'my','dog','has','flea','problems','help','please',
         'maybe','not','take','him','to','dog','park','stupid',
         'my','dalmation','is','so','cute','I','love','him'  ]
 
clean_tokens=tokens[:]
stwords=stopwords.words('english')  # 获取英文停用词表
for token in tokens:
    if token in stwords:
        clean_tokens.remove(token)
 
print(clean_tokens)